a1=[i*i for i in range(1,11) if i%2==0 ]
print(a1)

# a = list("abc")
# b = list("$%^")
# c = list("123")
# d= {q+w+e for q in a for w in b for e in c }
# print(d)

# a = list("aba")
# b = list("$%^")
# c = list("121")
# d= {q+w+e for q in a for w in b for e in c }
# print(d)
scores = {"tom":67,"lily":46,"lucy":90,"张三":89}
a={k:v for k,v in scores.items() }
print(a)

s = (x*x for x in range(1,11))


print(type(s)) # <class 'generator'>
#1
for i in s:
    print(i)

#2
l=list(s)
print(l)


